package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.PowerTreasure;

/**
 * 充电宝Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-21
 */
public interface PowerTreasureMapper 
{
    /**
     * 查询充电宝
     * 
     * @param treasureId 充电宝主键
     * @return 充电宝
     */
    public PowerTreasure selectPowerTreasureByTreasureId(Long treasureId);

    /**
     * 查询充电宝列表
     * 
     * @param powerTreasure 充电宝
     * @return 充电宝集合
     */
    public List<PowerTreasure> selectPowerTreasureList(PowerTreasure powerTreasure);

    /**
     * 新增充电宝
     * 
     * @param powerTreasure 充电宝
     * @return 结果
     */
    public int insertPowerTreasure(PowerTreasure powerTreasure);

    /**
     * 修改充电宝
     * 
     * @param powerTreasure 充电宝
     * @return 结果
     */
    public int updatePowerTreasure(PowerTreasure powerTreasure);

    /**
     * 删除充电宝
     * 
     * @param treasureId 充电宝主键
     * @return 结果
     */
    public int deletePowerTreasureByTreasureId(Long treasureId);

    /**
     * 批量删除充电宝
     * 
     * @param treasureIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePowerTreasureByTreasureIds(Long[] treasureIds);
}
